<?php
/*code here*/
$db = new Database();
$auth = Auth::getAuth('current_user');
$level = $auth['UserType'];
$user_level = $db->query("SELECT * FROM tbluser_level WHERE id='$level'","row");
if($user_level['level'] == "Admin"){
}else{
    header('Location: /home');
}
/*code here(end)*/
$this->setLayout();